package com.pin.si.www.example.mybatis_flex.controller.hello;

import com.pin.si.www.common.pojo.result.CommonResult;
import com.pin.si.www.example.mybatis_flex.service.hello.HelloService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @Resource
    private HelloService helloService;

    @PostMapping("/create")
    public CommonResult<?> create(String hello) {
        helloService.create(hello);
        return CommonResult.success();
    }

}
